package cn.pku.sirx.snad.uias.analyzer;

import org.springframework.util.Assert;

import cn.pku.sirx.snad.uias.analyzer.interactionship.IInteractionshipAnalyzer;

/**
 * @author WangXiao
 */
public class UserInteractionshipAnalyzer implements IAnalyzer {

	@Override
	public double analyze(String fromUserId, String toUserId) {
		Assert.notNull(fromUserId);
		Assert.notNull(toUserId);

		return messageBoardAnalyzer.analyze(fromUserId, toUserId);
	}

	private IInteractionshipAnalyzer messageBoardAnalyzer;

	public void setMessageBoardAnalyzer(
			IInteractionshipAnalyzer messageBoardAnalyzer) {
		this.messageBoardAnalyzer = messageBoardAnalyzer;
	}

}
